package com.ruoyix.ai.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * AI 聊天消息业务对象 ai_chat_message
 *
 * @author ruoyi
 * @date 2024-09-21
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AiChatMessageBo extends BaseEntity {

    /**
     * 消息编号
     */
    @NotNull(message = "消息编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 对话编号
     */
    @NotNull(message = "对话编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long conversationId;

    /**
     * 回复编号
     */
    @NotNull(message = "回复编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long replyId;

    /**
     * 用户编号
     */
    @NotNull(message = "用户编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 角色编号
     */
    @NotNull(message = "角色编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long roleId;

    /**
     * 消息类型
     */
    @NotBlank(message = "消息类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 模型标识
     */
    @NotBlank(message = "模型标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 模型编号
     */
    @NotNull(message = "模型编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long modelId;

    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 是否携带上下文
     */
    @NotNull(message = "是否携带上下文不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer useContext;


    /**
     * 是否删除
     */
    @NotNull(message = "是否删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer deleted;



}
